From: Claudio Cambra Date: Thu, 28 Nov 2024 09:10:54 +0000 (+0800) Subject: Replace use of deprecated QLibraryInfo::location with QLibraryInfo::path X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~173^2~20 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=fdf0ec51371d4afba3f757feced744323391b0d4;p=nextcloud-desktop.git Replace use of deprecated QLibraryInfo::location with QLibraryInfo::path Signed-off-by: Claudio Cambra --- diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 0aaeffd79..ab4d4159e 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -1003,7 +1003,7 @@ void Application::setupTranslations() // have a translation file provided. qCInfo(lcApplication) << "Using" << lang << "translation"; setProperty("ui_lang", lang); - const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath); + const QString qtTrPath = QLibraryInfo::path(QLibraryInfo::TranslationsPath); const QString qtTrFile = QLatin1String("qt_") + lang; const QString qtBaseTrFile = QLatin1String("qtbase_") + lang; if (!qtTranslator->load(qtTrFile, qtTrPath)) {